<template>
  <el-dialog :title="title" :visible="visible" @close="visible=false">
    <el-form
      ref="form"
      :model="entityData"
      :rules="rules"
      label-width="80px"
      label-position="right"
      style="width:90%;margin:0px auto;"
    >
      <!--表单区域 -->
      <el-form-item label="应用编码" prop="appCode">
        <el-input v-model="entityData.appCode" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="服务编码" prop="serviceCode">
        <el-input v-model="entityData.serviceCode" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="请求时间" prop="requestTime">
        <el-input v-model="entityData.requestTime" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="收到时间" prop="receiveTime">
        <el-input v-model="entityData.receiveTime" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="请求业务数据" prop="requestBusinessData">
        <el-input v-model="entityData.requestBusinessData" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="执行结果" prop="executeResult">
        <el-input v-model="entityData.executeResultName" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="错误编码" prop="errorCode">
        <el-input v-model="entityData.errorCode" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="错误信息" prop="errorMessage">
        <el-input v-model="entityData.errorMessage" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="响应时间" prop="responseTime">
        <el-input v-model="entityData.responseTime" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="响应业务数据" prop="responseBusinessData">
        <el-input v-model="entityData.responseBusinessData" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="执行耗时" prop="executionTime">
        <el-input v-model="entityData.executionTime" :readonly="readonly" />
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="close">关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
import { detailMixin } from '@/mixin/detailMixin'
const MODULE_CODE = 'cip'
const ENTITY_TYPE = 'apiServiceLog'
export default {
  name: ENTITY_TYPE + '-detail',
  mixins: [detailMixin],
  data() {
    return {
      entityType: ENTITY_TYPE,
      moduleCode: MODULE_CODE,
      // eslint-disable-next-line no-eval
      api: eval('this.$api.' + MODULE_CODE + '.' + ENTITY_TYPE),
      pageCode: MODULE_CODE + ':' + ENTITY_TYPE + ':',
      entityData: {

      },
      rules: {

      }
    }
  },
  methods: {

  }

}
</script>

<style lang="scss">
</style>
